package com.work.util;

import com.work.vo.ResultVo;
import org.apache.poi.ss.formula.functions.T;

public class ResultUtil {

    public static ResultVo success(){
        ResultVo resultVo=new ResultVo();
        resultVo.setCode(200);
        return resultVo;
    }

    public static ResultVo success(T data){
        ResultVo resultVo=new ResultVo();
        resultVo.setCode(200);
        resultVo.setData(data);
        return resultVo;
    }

    public static ResultVo fail(){
        ResultVo resultVo=new ResultVo();
        resultVo.setCode(404);
        return resultVo;
    }
}
